package com.ziji.testFactoryBean;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Test {

	public static void main(String[] args) {

		AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class);

		//从getBean去看bean是怎么拿到的
		System.out.println(applicationContext.getBean("testFactoryBean"));
		System.out.println(applicationContext.getBean("testFactoryBean"));
		System.out.println(applicationContext.getBean("testFactoryBean"));

//		System.out.println("--匡振-曦-");
	}

}
